package com.taptech.doufu.bean;

import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;

import java.util.ArrayList;

/**
 * Created by longsiyang on 16/4/24.
 */
public class DFHomeNovelBeans extends MineAbstractBean
{
    private String title;// 小说名
    private ImageBean[] images;
    private String des;
    private UserBean user;
    private String author;// 作者
    private TagsBean[] tags;
    private String description2;// 简介
    private String is_vip;// 是否是收费小说，1：收费小说，0：普通小说
    private int id;
    private String cover;
    private String desc;
    private String status_info;
    private float end_price;
    private float total_price;
    private int banner_type;
    private int banner_id;
    private String banner_img;
    private String banner_link;
    private AlbumInfo albumInfo;
    private String image;
    private String tag_list;

    private int line_num;


    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getTag_list() {
        return tag_list;
    }

    public void setTag_list(String tag_list) {
        this.tag_list = tag_list;
    }

    public int getLine_num() {
        return line_num;
    }

    public void setLine_num(int line_num) {
        this.line_num = line_num;
    }

    public AlbumInfo getAlbumInfo() {
        return albumInfo;
    }

    public void setAlbumInfo(AlbumInfo albumInfo) {
        this.albumInfo = albumInfo;
    }

    public int getBanner_type() {
        return banner_type;
    }

    public void setBanner_type(int banner_type) {
        this.banner_type = banner_type;
    }

    public int getBanner_id() {
        return banner_id;
    }

    public void setBanner_id(int banner_id) {
        this.banner_id = banner_id;
    }

    public String getBanner_img() {
        return banner_img;
    }

    public void setBanner_img(String banner_img) {
        this.banner_img = banner_img;
    }

    public String getBanner_link() {
        return banner_link;
    }

    public void setBanner_link(String banner_link) {
        this.banner_link = banner_link;
    }

    public float getTotal_price() {
        return total_price;
    }

    public void setTotal_price(float total_price) {
        this.total_price = total_price;
    }

    public float getEnd_price() {
        return end_price;
    }

    public void setEnd_price(float end_price) {
        this.end_price = end_price;
    }

    //特别添加字断
    public boolean hasTitleA=false;//判断前面需要显示标题
    public boolean isMoreUrlA=false;//是否能跳转到更多
    public String moreUrlAddress="";//跳转到更多的地址
    public String upTitleNameA="";//显示在上方的标题名字
    public boolean isShowTag=true;
    public boolean isShowLine=true;

    public static ArrayList<DFHomeNovelBeans> getDFHomeNovelBeans(String jsonArrayStr) {
        ArrayList<DFHomeNovelBeans> MyBeans = new Gson().fromJson(jsonArrayStr, new TypeToken<ArrayList<DFHomeNovelBeans>>(){}.getType());
        return MyBeans;
    }

    public class AlbumInfo{
        private String name;
        private String url;
        private String moreUrl;

        public String getMoreUrl() {
            return moreUrl;
        }

        public void setMoreUrl(String moreUrl) {
            this.moreUrl = moreUrl;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }
    }

    public String getCover_left_top_icon_url() {
        return cover_left_top_icon_url;
    }

    public void setCover_left_top_icon_url(String cover_left_top_icon_url) {
        this.cover_left_top_icon_url = cover_left_top_icon_url;
    }

    private String cover_left_top_icon_url;

    public int getId()
    {
        return id;
    }

    public void setId(int id)
    {
        this.id = id;
    }

    public String getAuthor()
    {
        return author;
    }

    public void setAuthor(String author)
    {
        this.author = author;
    }

    public String getTitle()
    {
        return title;
    }

    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getIs_vip() {
        return is_vip;
    }

    public void setIs_vip(String is_vip) {
        this.is_vip = is_vip;
    }

    public String getDes()
    {
        return des;
    }

    public void setDes(String des)
    {
        this.des = des;
    }

    public UserBean getUser()
    {
        return user;
    }

    public void setUser(UserBean user)
    {
        this.user = user;
    }

    public TagsBean[] getTags()
    {
        return tags;
    }

    public void setTags(TagsBean[] tags)
    {
        this.tags = tags;
    }

    public ImageBean[] getImages()
    {
        return images;
    }

    public void setImages(ImageBean[] images)
    {
        this.images = images;
    }

    public String getDescription2()
    {
        return description2;
    }

    public void setDescription2(String description2)
    {
        this.description2 = description2;
    }

    public String getCover() {
        return cover;
    }

    public void setCover(String cover) {
        this.cover = cover;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public String getStatus_info() {
        return status_info;
    }

    public void setStatus_info(String status_info) {
        this.status_info = status_info;
    }
}
